package com.yalemang.photovalut.base.utils;

import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import com.blankj.utilcode.util.ResourceUtils;

public class SvgUtils {

    public static Drawable getDrawable(int color,int resId){
        Drawable drawable = ResourceUtils.getDrawable(resId);
        PorterDuffColorFilter porterDuffColorFilter = new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP);
        drawable.setColorFilter(porterDuffColorFilter);
        return drawable;
    }

}
